.no-user-select {
  user-select: none;
}

.br-spin-box {
  display: inline-block;
  vertical-align: middle;

  &__add {
    background: $background-white-color;
    border: 1px solid $border-color;
    display: inline-block;
    border-left: 0;
    vertical-align: bottom;
    cursor: pointer;
    text-align: center;

    &-icon {
      display: block;
    }
  }

  &__input {
    text-align: center;
    border: 1px solid $border-color;
    font-size: $font-size;
    color: rgb(38, 38, 38);

    &:focus {
      outline: none;
      border: 1px solid #a8c8ff;
      border-left: 2px solid #a8c8ff;
      border-right: 2px solid #a8c8ff;
    }
  }

  &__sub {
    background: $background-white-color;
    border: 1px solid $border-color;
    display: inline-block;
    border-right: 0;
    vertical-align: bottom;
    cursor: pointer;
    text-align: center;
    color: #CCCCCC;

    &-icon {
      display: block;
    }
  }

  &--small &__input {
    width: 44px;
    height: $input-xs-height;
  }

  &--small &__add {
    height: $input-xs-height;
    width: 18px;
    color: #787878;
    line-height: $input-xs-height - 2; //减去上下边框的高度
    padding-left: 1px; // 图标右侧有1px留白

    &-icon {
      font-size: $font-size;
      transform: scale(0.75);
    }
  }

  &--small &__sub {
    height: $input-xs-height;
    width: 18px;
    line-height: $input-xs-height - 2; //减去上下边框的高度
    padding-left: 1px; // 图标右侧有1px留白

    &-icon {
      font-size: $font-size;
      transform: scale(0.75);
    }
  }

  &--large &__input {
    width: 46px;
    height: $input-normal-height;
  }

  &--large &__add {
    height: $input-normal-height;
    width: 25px;
    color: #989898;
    line-height: $input-normal-height - 2; //减去上下边框的高度
    padding-left: 1px; // 图标右侧有1px留白

    &-icon {
      font-size: $font-size;
      font-weight: bold;
    }
  }

  &--large &__sub {
    height: $input-normal-height;
    width: 25px;
    line-height: $input-normal-height - 2; //减去上下边框的高度
    padding-left: 1px; // 图标右侧有1px留白

    &-icon {
      font-size: $font-size;
      font-weight: bold;
    }
  }

  &--disabled &__sub {
    cursor: not-allowed;
  }

  &--disabled &__input {
    cursor: not-allowed;
  }

  &--disabled &__add {
    cursor: not-allowed;
  }
}
